/*
 * SyncService.java
 *
 * Created on 02. Juli 2009, 11:08
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package fhv.itb.mst2955.client;
import com.google.gwt.user.client.rpc.RemoteService;
import fhv.itb.mst2955.client.model.ChangeObject;
import fhv.itb.mst2955.client.model.UpdateObject;
import java.util.Vector;

/**
 * The remote service for dealing with synchronization.
 */
public interface SyncService extends RemoteService{

    /**
     * Synchronizes the provided domain objects with the server-side database.
     *
     * @param changedObjects
     * The client-side objects to be synchronized with the server.
     *
     * @return
     * A list of conflicting objects for conflict resolution.
     */
    public Vector<ChangeObject> update(Vector<ChangeObject> changedObjects);
}
